package com.baoy.cloud.xxx.common.ex;


import lombok.AllArgsConstructor;
import lombok.Data;

@AllArgsConstructor
public enum Exceptions {

    failure(0, "操作失败."),
    sucess(1, "操作成功."),
    login_success(10000, "登录成功."),
    username_notfound(10001, "账户为空."),
    username_locked(10002, "账户锁定."),
    password_error(10003, "密码错误.")

    ;
    int code;
    String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
